package com.vken.blog.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.vken.blog.model.Comment;
import com.vken.blog.util.Pagination;

@Transactional
public interface CommentManager {
	public void deleteComments(Integer[] commentId);

	@Transactional(readOnly = true)
	public Pagination getListByBlogId(Integer blogId, Integer status, int pageSize, int pageNumber);

	@Transactional(readOnly = true)
	public List<Comment> getListByEntryId(Integer entryId);

	public void insert(Comment comment, Integer entryId);

	public void updateComments(Integer[] commentId);
}
